<!DOCTYPE html>
<html>
<head>
	<title>ref</title>
	<meta charset="UTF-8">
	<script src="./vue.js"></script>
</head>
<body>
	<div id="app">
		 <div @click="handleClick"
			  ref="hello"
		 >
			 dasdasdsad
		 </div>
	</div>

	<script>
		Vue.component('row', {
			template: `<tr><td>{{content}}</td></tr>`,
			data: function () {
				return {
					content: '3213213'
				}
			}
		})
		var app = new Vue({
			el: '#app',
			data: {
				counter: 0,
				message: ''
			},
			methods: {
				handleClick: function () {
					console.log(this.$refs.hello)
				}
			}
		})
	</script>

</body>
</html>